package com.ruoyi.shop.cms.service;

import java.util.List;

import com.ruoyi.shop.cms.domain.ShopMaterial;


/**
 * 商城素材Service接口
 * 
 * @author xuxiang
 * @date 2022-09-26
 */

public interface IShopMaterialService {
	/**
	 * 查询商城素材
	 * 
	 * @param materialId 商城素材主键
	 * @return 商城素材
	 */
	public ShopMaterial selectMaterialById(Long materialId);

	/**
	 * 查询商城素材列表
	 * 
	 * @param shopMaterial 商城素材
	 * @return 商城素材集合
	 */
	public List<ShopMaterial> selectMaterialList(ShopMaterial shopMaterial);

	/**
	 * 批量新增商城素材
	 * 
	 * @param shopMaterial 商城素材
	 * @return 结果
	 */
	public int insertMaterials(List<ShopMaterial> shopMaterials);

	/**
	 * 修改商城素材
	 * 
	 * @param shopMaterial 商城素材
	 * @return 结果
	 */
	public int updateMaterial(ShopMaterial shopMaterial);

	/**
	 * 删除商城素材信息
	 * 
	 * @param materialId 商城素材主键
	 * @return 结果
	 */
	public int deleteByMaterialId(Long materialId);

	/**
	 * 批量删除商城素材
	 * 
	 * @param materialIds 需要删除的商城素材主键集合
	 * @return 结果
	 */
	public int deleteByMaterialIds(String materialIds);

	/**
	 * 批量修改素材分组
	 * 
	 * @param materialIds
	 * @param groupId
	 * @return
	 */
	public int changeGroup(String materialIds, Long groupId);
}
